Fix bug #11813 with invalid font for buffer name on the modeline.
authorEli Zaretskii <eliz@gnu.org>
Sun, 8 Jul 2012 15:49:39 +0000 (18:49 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 8 Jul 2012 15:49:39 +0000 (18:49 +0300)
 src/xdisp.c (fill_glyphless_glyph_string): If the face of the glyph
 has no font, use the frame's font.

src/ChangeLog
src/xdisp.c

index 94d7c68e0934dc272c362e67f72a885b402aadc9..c170b28452733cde5bef1d616dbea7d89c395d51 100644 (file)
@@ -1,3 +1,8 @@
+2012-07-08  Eli Zaretskii  <eliz@gnu.org>
+
+       * xdisp.c (fill_glyphless_glyph_string): If the face of the glyph
+       has no font, use the frame's font.  (Bug#11813)
+
 2012-07-07  Andreas Schwab  <schwab@linux-m68k.org>
 
        * xdisp.c (display_line): Avoid warning about implicit declaration
index 2b2765e7f9379a7b34bd58d6b895cd7198d497fc..3a485f6a5a9514a8e7168457fa907808b5920ac7 100644 (file)
@@ -22736,7 +22736,7 @@ fill_glyphless_glyph_string (struct glyph_string *s, int face_id,
   last = s->row->glyphs[s->area] + end;
   voffset = glyph->voffset;
   s->face = FACE_FROM_ID (s->f, face_id);
-  s->font = s->face->font;
+  s->font = s->face->font ? s->face->font : FRAME_FONT (s->f);
   s->nchars = 1;
   s->width = glyph->pixel_width;
   glyph++;